Conversation
Add structured AI agent skills to help coding assistants use react-turnstile correctly: - 5 comprehensive skills: basic-setup, widget-customization, nextjs-ssr, multiple-widgets, token-lifecycle - Domain map with 8 failure modes extracted from GitHub issues and maintainer interviews - CI workflows for skill validation and stale checking - Version bumping now includes skill files via bumpp config
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
To view this pull requests documentation preview, visit the following URL: docs.page/marsidev/react-turnstile~123 Documentation is deployed and generated using docs.page. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Add pnpm check (runs lint:check + format:check + typecheck) - Add pnpm fix (runs lint + format) - Rename type-check scripts to typecheck for consistency - Update CI to use single check job instead of 3 separate jobs - Remove lint-staged (no longer needed with fast oxlint/oxfmt) - Update pre-commit hook to run full pnpm check - Add unwantedRecommendations to VS Code config
Security fixes: - jsdom: 28.0.0 → 29.0.1 (fixes undici vulnerabilities) - next: 16.1.6 → 16.2.1 (fixes Next.js security advisories) Package updates: - @antfu/ni: 28.2.0 → 30.0.0 - @playwright/test: 1.58.1 → 1.58.2 - playwright: 1.58.1 → 1.58.2 - @types/react: 19.2.10 → 19.2.14 - @types/node: 25.2.0 → 25.5.0 - oxlint: 1.56.0 → 1.57.0 - oxfmt: 0.41.0 → 0.42.0 - oxlint-tsgolint: 0.17.1 → 0.17.4 - pnpm: 10.28.2 → 10.33.0 - @typescript/native-preview: dev.20260320.1 → dev.20260325.1 - vitest: 4.0.18 → 4.1.1 - bumpp: 10.4.0 → 11.0.1 - lucide-react: 0.563.0 → 1.6.0 - jotai: 2.17.0 → 2.19.0 - tailwindcss/postcss: 4.1.18 → 4.2.2 - autoprefixer: 10.4.24 → 10.4.27 - postcss: 8.5.6 → 8.5.8 Breaking changes handled: - Replaced lucide-react GithubIcon with inline SVG
Replaced tsup with tsdown for faster builds: - Build time: ~1.1s → ~458ms (2.3x faster) - Uses Rolldown (Rust-based bundler) - Built-in gzip size reporting - Maintains same output format (.js/.d.ts) Changes: - Removed tsup dependency and config - Added tsdown dependency and config - Updated build scripts - Preserved backward compatible output
Changes: - CONTRIBUTING.md: Changed 'tsup' to 'tsdown' in dev server description - Root package.json: Removed obsolete tsup>rollup override - packages/lib/package.json: Added typescript devDependency The typescript package is required by tsdown/rolldown-plugin-dts for generating .d.ts declaration files.
Changes: - Remove duplicate JSX/JS code examples - Keep only TypeScript examples with proper types - Apply consistent formatting (double quotes, semicolons) - Remove unnecessary <CodeGroup> wrappers - Update 12 documentation files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces ESLint/Prettier with Oxlint/Oxfmt for 50-100x faster linting/formatting, migrates to TypeScript v7 (Go), consolidates DX with unified
check/fixscripts, updates all dependencies to fix security vulnerabilities, and migrates library build from tsup to tsdown.Changes
🚀 Tooling Migration
.eslintrc.json→oxlint.config.ts.prettierrc.mjs→oxfmt.config.tspackages/eslint-config-custompackage entirelylint-stageddependency (no longer needed)⚡ TypeScript v7 (Go Implementation)
@typescript/native-preview(TS v7 dev preview)oxlint-tsgolintfor type-aware lintingoptions.typeAware: truein Oxlint configtype-checkscripts totypecheckfor consistency🔒 Security Fixes
pnpm auditnow shows 0 issues📦 Dependency Updates
Updated 17+ packages across the monorepo:
@antfu/ni: 28.2.0 → 30.0.0@playwright/test&playwright: 1.58.1 → 1.58.2@types/react: 19.2.10 → 19.2.14@types/node: 25.2.0 → 25.5.0pnpm: 10.28.2 → 10.33.0@typescript/native-preview: dev.20260320.1 → dev.20260325.1vitest: 4.0.18 → 4.1.1bumpp: 10.4.0 → 11.0.1lucide-react: 0.563.0 → 1.6.0 (breaking: brand icons removed)jotai: 2.17.0 → 2.19.0tailwindcss: 4.1.18 → 4.2.2autoprefixer: 10.4.24 → 10.4.27postcss: 8.5.6 → 8.5.8📚 Library Build Migration (tsup → tsdown)
tsupwithtsdown(Rolldown-based library bundler)tsdown.config.tswith ESM outputtsup.config.tsandtsupdependency📝 Script Improvements
🔧 CI Optimization
checkjob🎯 DX Enhancements
CONTRIBUTING.mdwith full development guidepnpm check(validates all files)Performance Impact
Files Changed
.github/workflows/ci.yml- Optimized CI workflowpackage.json- New scripts, updated depsoxlint.config.ts- New linter configoxfmt.config.ts- New formatter configCONTRIBUTING.md- New contributor guide.vscode/extensions.json- Updated recommendationspackages/lib/package.json- Updated scripts & dependenciespackages/lib/tsdown.config.ts- NEW: tsdown configurationpackages/lib/tsup.config.ts- REMOVED: tsup configurationdemos/nextjs/package.json- Updated scripts & dependenciesdemos/nextjs/src/components/header.tsx- Fixed lucide-react breaking changepnpm-lock.yaml- Updated lockfileBreaking Changes
Library: None - No runtime changes, no API changes.
Demo App:
lucide-reactv1.6.0 removed brand icons (includingGithubIcon). Replaced with inline SVG in header component.Testing
pnpm checkpassespnpm fixworks correctlypnpm lib:build)pnpm test)pnpm auditshows 0 vulnerabilitiesMigration for Contributors
Existing contributors need to:
pnpm installto get new dependenciespnpm checkinstead of individual commands